#!/usr/bin/env python3

'''
Author       : bopo
Date         : 2020-12-08 10:45:02
LastEditors  : bopo
LastEditTime : 2020-12-08 13:49:40
FilePath     : /stealer/stealer/__main__.py
Description  :
'''
import click
import sys

from . import command
from .stealer import Stealer


@click.command()
@command.verbose_option()
@command.version_option()
@click.option('-u', '--url', required=True)
def main(url):
    response = Stealer().dispatch(text=url).parse(header=True)
    click.echo(response)
    return 0


if __name__ == "__main__":
    sys.exit(main())  # pragma: no cover

# stealer prase -u http://www.com/sdsd/ -vv
